押金撤销
撤销押金订单
| 请求参数 | 类型 | 描述 |
|---|---|---|
| base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/(香港接入) |
| out_trade_no | string | 商户订单号 |
| json | object | 声明请求的JSON数据结构 |
| sp_appid | string | 机构APPID |
| sub_appid | string | 子商户APPID |
| sub_mchid | string | 子商户号 |
php
$instance->v3->global->settle->depositOrders->_out_trade_no_->reverse->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/global/settle/deposit-orders/{out_trade_no}/reverse')->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/global/settle/deposit-orders/{out_trade_no}/reverse']->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->global->settle->depositOrders->_out_trade_no_->reverse->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/global/settle/deposit-orders/{out_trade_no}/reverse')->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/global/settle/deposit-orders/{out_trade_no}/reverse']->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'out_trade_no' => '1217752501201407033233368018',
'json' => [
'sp_appid' => 'wx8888888888888888',
'sub_appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| consumption_state | string | 押金消费状态 |
| total_amount | string | 押金标价金额 |
| total_amount_currency | string | 押金标价币种 |
| transaction_id | string | 微信订单号 |
| out_trade_no | string | 商户订单号 |
| success_time | string | 支付成功时间 |
| consume_amount | string | 押金消费标价金额 |
| consume_amount_currency | string | 押金消费标价币种 |
| consume_time | string | 押金消费时间 |
参阅 官方文档